package com.dianxun.exam.entity;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;

import java.util.List;

import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 答案
 */
@Entity
public class AnswerBean {

    @Id(autoincrement = true)
    protected Long id;
    private String tikuId;
    private String displayName;
    private String paperNo;
    private String paperName;
    private String category;
    private long totalTime;
    private String startTime;
    private String endTime;
    private String userId;

    // 新增 & 改动
    private int judgmentScore;
    private int choice0Score;
    private int choice1Score;
    private int score;
    @Convert(columnType = String.class, converter = SubjectJudgmentListConverter.class)
    private List<SubjectJudgmentListBean> subjectJudgmentList;
    @Convert(columnType = String.class, converter = SubjectChoiceListConverter.class)
    private List<SubjectChoiceListBean> subjectChoiceList;
    @Convert(columnType = String.class, converter = AnswerJudgmentListConverter.class)
    private List<AnswerJudgmentListBean> judgmentList;
    @Convert(columnType = String.class, converter = AnswerChoiceListConverter.class)
    private List<AnswerChoiceListBean> choiceList;
    private boolean isUpload;

    @Generated(hash = 761316082)
    public AnswerBean(Long id, String tikuId, String displayName, String paperNo,
                      String paperName, String category, long totalTime, String startTime,
                      String endTime, String userId, int judgmentScore, int choice0Score,
                      int choice1Score, int score, List<SubjectJudgmentListBean> subjectJudgmentList,
                      List<SubjectChoiceListBean> subjectChoiceList,
                      List<AnswerJudgmentListBean> judgmentList, List<AnswerChoiceListBean> choiceList,
                      boolean isUpload) {
        this.id = id;
        this.tikuId = tikuId;
        this.displayName = displayName;
        this.paperNo = paperNo;
        this.paperName = paperName;
        this.category = category;
        this.totalTime = totalTime;
        this.startTime = startTime;
        this.endTime = endTime;
        this.userId = userId;
        this.judgmentScore = judgmentScore;
        this.choice0Score = choice0Score;
        this.choice1Score = choice1Score;
        this.score = score;
        this.subjectJudgmentList = subjectJudgmentList;
        this.subjectChoiceList = subjectChoiceList;
        this.judgmentList = judgmentList;
        this.choiceList = choiceList;
        this.isUpload = isUpload;
    }

    @Generated(hash = 1597358991)
    public AnswerBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTikuId() {
        return this.tikuId;
    }

    public void setTikuId(String tikuId) {
        this.tikuId = tikuId;
    }

    public String getDisplayName() {
        return this.displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getPaperNo() {
        return this.paperNo;
    }

    public void setPaperNo(String paperNo) {
        this.paperNo = paperNo;
    }

    public String getPaperName() {
        return this.paperName;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public String getCategory() {
        return this.category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public long getTotalTime() {
        return this.totalTime;
    }

    public void setTotalTime(long totalTime) {
        this.totalTime = totalTime;
    }

    public String getStartTime() {
        return this.startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return this.endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getJudgmentScore() {
        return this.judgmentScore;
    }

    public void setJudgmentScore(int judgmentScore) {
        this.judgmentScore = judgmentScore;
    }

    public int getChoice0Score() {
        return this.choice0Score;
    }

    public void setChoice0Score(int choice0Score) {
        this.choice0Score = choice0Score;
    }

    public int getChoice1Score() {
        return this.choice1Score;
    }

    public void setChoice1Score(int choice1Score) {
        this.choice1Score = choice1Score;
    }

    public int getScore() {
        return this.score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public List<SubjectJudgmentListBean> getSubjectJudgmentList() {
        return this.subjectJudgmentList;
    }

    public void setSubjectJudgmentList(List<SubjectJudgmentListBean> subjectJudgmentList) {
        this.subjectJudgmentList = subjectJudgmentList;
    }

    public List<SubjectChoiceListBean> getSubjectChoiceList() {
        return this.subjectChoiceList;
    }

    public void setSubjectChoiceList(List<SubjectChoiceListBean> subjectChoiceList) {
        this.subjectChoiceList = subjectChoiceList;
    }

    public List<AnswerJudgmentListBean> getJudgmentList() {
        return this.judgmentList;
    }

    public void setJudgmentList(List<AnswerJudgmentListBean> judgmentList) {
        this.judgmentList = judgmentList;
    }

    public List<AnswerChoiceListBean> getChoiceList() {
        return this.choiceList;
    }

    public void setChoiceList(List<AnswerChoiceListBean> choiceList) {
        this.choiceList = choiceList;
    }

    public boolean getIsUpload() {
        return this.isUpload;
    }

    public void setIsUpload(boolean isUpload) {
        this.isUpload = isUpload;
    }
}